<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%
Long companyId=null;
if(user==null){
    response.sendRedirect(basePath+"user/login.jsp");
    return;
}else{
    companyId=user.getLastCompanyId();
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-我的单位</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript" src="<%=basePath %>user/m/js/mycompany.js"></script>
<script type="text/javascript" src="<%=basePath %>user/m/js/createcompany.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/joincompany2.js"></script>
<script type="text/javascript">
var userId=<%=userId%>;
var companyid=<%=companyId%>;
</script>
<style type="">
.page1{ margin:19px 0 18px 0; font-size: 14px; line-height: 22px; text-align: center;}
.page1 a{ display: inline-block; height: 22px; color: #979797; padding: 0 7px; border:1px solid #d3d3d3; }
.page1 span{ display: inline-block; height: 22px; color: #979797; padding: 0 7px; border:1px solid #d3d3d3; }
.page1 a:hover,.page1 a.intro{ background:#ededed;}
</style>
</head>
<body bgcolor="white">
<div class="regsuc_cjcd_box" id="createCompany" style="display: none; z-index: 9;">
		<!-- 标题_begin -->
		<div class="cjcd_box_title">
			<h2 class="cjcd">创建单位</h2>
			<p class="return_login"><img src="<%=basePath %>user/images/add_members_close.jpg" class="close" style="padding: 30px 0 0 60px;" /></p>
		</div>
		<!-- 标题_end -->
		<!-- 创建菜单表格_begin -->
		<form class="cjcd_form" action="" method="">				
			<table class="cjcd_table">
				<tr class="normal">
					<td class="fir_td"><p class="company">单位名称：</p></td>
					<td class="sec_td"><input type="text" maxlength="20" id="companyName" name="companyName" class="company_text" placeholder="请输入单位名称" /></td>
				</tr>
				<tr class="normal">
					<td class="fir_td"><p class="company">所属地区：</p></td>
					<td class="sec_td">
						<select class="province" id="province">
							<option value ="0" >省份</option>  
						</select>
						<select class="city" id="city">  
							<option value ="0" selected="selected">城市</option>  
						</select>
						<select class="country" id="country">  
							<option value ="0" selected="selected">区/县</option>  
						</select>
					</td>
				</tr>
				<tr class="comp_introduce">
					<td class="fir_td"><p class="company">单位简介：</p></td>
					<td class="sec_td"><textarea class="dwjj" id="remark" name="remark" cols="20" rows="5">请输入单位简介，500字以内...</textarea></td>
				</tr>
				<tr>
					<td class="fir_td"></td>
					<td class="sec_td"><input  class="submit_btn" type="button" onclick="save(1);" value="完成" /></td>
				</tr>
			</table>
		</form>
		<!-- 创建菜单表格_end -->
	</div>
	<div class="login_main" id="joinCompany" style="display: none; z-index: 8; position:absolute; left:300px;top:15px;">
            <div class="login_top"></div>
            <div class="login_center">
               <div class="login_title">
                  <span>加入单位</span>
                  <a><img src="<%=basePath %>user/images/add_members_close.jpg" class="close" style="padding: 30px 0 0 60px;" /></a>
               </div><!--login_title end-->
               <div class="login_content">
                  <div class="join">
                     <div class="search">
                        <p><b>请输入关键字搜索</b><input id="searchname" name="searchname" type="text" class="input_txt" /></p>
                        <a  onclick="querycomany();">查询</a>
                     </div><!--search end-->
                     <div class="join_content">
                        <ul>                          
                        </ul>
                        <div class="page1" id="join_content">                            
                        </div><!--page end-->
                     </div><!--join_content end-->
                  </div><!--join end-->

               </div><!--login_content end-->
            </div><!--login_center end-->
            <div class="login_down"></div>
         </div><!--login_main end-->
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
	<%@ include file="/user/left.jsp"%>
	<!-- 右侧内容_begin -->
	<div class="pwsj_cont_right_box">
		<%if(companyUser!=null) {%>
		<div class="members_manage">
			<div class="pwsj_right_czrz_title">单位管理</div>
			<div class="add_member" onclick="createCompany();" style="float: left;">创建单位</div>
			<div class="add_member" onclick="joinCompany();" style="float: left;margin-left: 30px;">加入单位</div>
			<div class="clear"></div>
			<div class="pwsj_right_czrz_cont_title">
				<ul class="czrz_title_ul">
					<li class="number" style="width: 5%">序号</li>
					<li class="number" style="width: 8%">单位编号</li>
					<li class="time" style="width: 23%">单位名称</li>
					<li class="operation" style="width: 20%">地区</li>
					<li class="username" style="width: 20%">上级单位</li>
					<li class="username" style="width: 22%">操作</li>
				</ul>				
			</div>
			<div id="content">
			</div>
		</div>
		<!-- 分页_begin -->
		<div class="page">
	            <a >首页</a>
	            <a >上一页</a>
	            <a class="intro" >1</a>
	            <a >下一页</a>
	            <a >末页</a>
	    </div>
	    <!-- 分页_end -->
		<%} %>
	</div>
	<!-- 右侧内容_end -->
	<div class="clear"></div>
	</div>
	<!--main end-->
<%@ include file="/user/foot.jsp"%>
</body>
</html>
